home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-11-27 | 1.9 KB | 84 lines |
- #------------------------------------------------------------------------------
- # Makefile for UnZip 5.x and ZipInfo 1.x Greg Roelofs and others
- # Version: djgpp 1.10
- #------------------------------------------------------------------------------
-
- #####################
- # MACRO DEFINITIONS #
- #####################
-
- CRYPTF =
- CRYPTO =
- # Uncomment the following two lines for decryption version:
- #CRYPTF = -DCRYPT
- #CRYPTO = crypt.obj
-
- CC = gcc
- CFLAGS = -Wall -O2 $(CRYPTF)
- INCL = # (-Ox does not work for inflate.c)
- LD = gcc
- LDFLAGS = -s
- LDFLAGS2 =
-
-
- OBJS1 = unzip.o $(CRYPTO) envargs.o explode.o extract.o file_io.o
- OBJS2 = inflate.o mapname.o match.o misc.o unreduce.o unshrink.o
-
- ZI_OBJS = zipinfo.o envargs.o match.o misc_.o
-
-
- ###############################################
- # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
- ###############################################
-
- default: unzip.exe zipinfo.exe
-
- .c.o:
- $(CC) -c $(CFLAGS) $(INCL) $*.c
-
- unzip.o: unzip.c unzip.h
-
- crypt.o: crypt.c unzip.h zip.h # may or may not be in distribution
-
- envargs.o: envargs.c unzip.h
-
- explode.o: explode.c unzip.h
-
- extract.o: extract.c unzip.h
-
- file_io.o: file_io.c unzip.h
-
- inflate.o: inflate.c unzip.h
-
- mapname.o: mapname.c unzip.h
-
- match.o: match.c unzip.h
-
- misc.o: misc.c unzip.h
-
- misc_.o: misc.c unzip.h
- -copy misc.c misc_.c
- $(CC) -c $(CFLAGS) -DZIPINFO $(INCL) misc_.c
- -del misc_.c
-
- unreduce.o: unreduce.c unzip.h
-
- unshrink.o: unshrink.c unzip.h
-
-
-
- # DOS/MS make:
- # -----------
- unzip.exe: $(OBJS1) $(OBJS2)
- $(LD) $(LDFLAGS) $(OBJS1) $(OBJS2) -o unzip
- coff2exe unzip
- -del unzip
-
-
- # Both makes: (not tested)
- # ----------
- zipinfo.exe: $(ZI_OBJS)
- $(LD) $(LDFLAGS) $(ZI_OBJS) -o zipinfo $(LDFLAGS2)
- coff2exe zipinfo
- -del zipinfo
-